package com.blast.cn.adapter

import com.blast.cn.R
import com.blast.cn.bean.SettingsItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.wxl.common.util.ImgLoader

class ControlInfoAdapter : BaseQuickAdapter<SettingsItem,BaseViewHolder> {

    constructor(data: List<SettingsItem>?) : super(R.layout.item_controll_layout,data)

    override fun convert(helper: BaseViewHolder, item: SettingsItem) {
        ImgLoader.loadResouce(helper.getView(R.id.controlItemImg),item.res)
        helper.setText(R.id.controlItemTitle,item.text)
        helper.setText(R.id.controlItemText,item.action)
    }


}